package com.bcu.cn.onlineexamsystem.Repository;

import com.bcu.cn.onlineexamsystem.user.entity.Ranking;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RankingRepository extends JpaRepository<Ranking, Long> {
    // 根据课程ID查询排名
    List<Ranking> findByCourseId(String courseId);
}
